package cn.csxw.openchina.ui.view;

import android.content.Context;
import android.graphics.drawable.Drawable;
import android.util.AttributeSet;
import android.view.MotionEvent;
import android.widget.LinearLayout;

import cn.csxw.openchina.R;
import cn.csxw.openchina.utils.Global;

/**
 * Created by User on 2017/1/17.
 */

public class MyBtnLinearLayout extends LinearLayout {
    public MyBtnLinearLayout(Context context) {
        super(context);
        setBackground(Global.getDrawable(R.drawable.touch_transparent_bg));
    }

    public MyBtnLinearLayout(Context context, AttributeSet attrs) {
        super(context, attrs);
        setBackground(Global.getDrawable(R.drawable.touch_transparent_bg));
    }

    public MyBtnLinearLayout(Context context, AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);
        setBackground(Global.getDrawable(R.drawable.touch_transparent_bg));
    }

    @Override
    public boolean onInterceptTouchEvent(MotionEvent ev) {
        return true;
    }
}
